<div class="header-nav clearfix">
    <div class="nav-category nav-category-toggled" id="J_categoryContainer"> <a href="" class="btn-category-list"><?php echo $this->translate('商品分类'); ?></a>
        <div style="display: block;" class="nav-category-section">
            <ul class="nav-category-list">
                <?php
                if ($this->goods_class) {
                    foreach ($this->goods_class as $class_key => $class_val) {
                        if($class_val['class_state'] == 0) continue;
                ?>
                <li class="nav-category-item <?php if($class_key == 0) echo 'nav-category-item-first'; ?>">
                    <?php if ($class_val['class_top_id'] == 0) { ?>
                    <div class="nav-category-content"> <a href="<?php echo $this->url('frontgoodslist/default', array('class_id'=>$class_val['class_id'])); ?>" class="title"><?php echo $this->escapeHtml($class_val['class_name']); ?></a>
                        <?php if (isset($class_val['sub_class']) and !empty($class_val['sub_class'])) { ?>
                        <div class="links">
                            <?php foreach($class_val['sub_class'] as $sub_value) { ?>
                                <a href="<?php echo $this->url('frontgoodslist/default', array('class_id'=>$sub_value['class_id'])); ?>"><?php echo $this->escapeHtml($sub_value['class_name']); ?></a>
                            <?php } ?>
                        </div>
                        <?php } ?>
                    </div>
                    <?php } ?>
                </li>
            <?php } } ?>

                <?php
                if ($this->frontside_array) {
                    foreach ($this->frontside_array as $frontside_key => $frontside_val) {
                        ?>
                        <li class="nav-category-item <?php if($frontside_key == 0) echo 'nav-category-item-first'; ?>">
                            <?php if ($frontside_val['frontside_topid'] == 0) { ?>
                                <div class="nav-category-content"> <a href="<?php echo $frontside_val['frontside_url']; ?>" class="title" <?php if($frontside_val['frontside_new_window'] == 1) echo 'target="_blank"'; ?>><?php echo $this->escapeHtml($frontside_val['frontside_name']); ?></a>
                                    <?php if (isset($frontside_val['sub']) and !empty($frontside_val['sub'])) { ?>
                                        <div class="links">
                                            <?php foreach($frontside_val['sub'] as $sub_value) { ?>
                                                <a href="<?php echo $sub_value['frontside_url']; ?>" <?php if($sub_value['frontside_new_window'] == 1) echo 'target="_blank"'; ?>><?php echo $this->escapeHtml($sub_value['frontside_name']); ?></a>
                                            <?php } ?>
                                        </div>
                                    <?php } ?>
                                </div>
                            <?php } ?>
                        </li>
                    <?php } } ?>
            </ul>
        </div>
    </div>
    <div class="nav-main">
        <ul class="nav-main-list J_menuNavMain clearfix">
            <li class="nav-main-item">
                <a href="<?php echo $this->url('shopfront/default'); ?>"><span class="text"><?php echo $this->translate('首页'); ?></span></a>
            </li>
            <?php
            $shop_middle_menu = $this->frontwebsite()->shopFrontMenu(2);
            if(is_array($shop_middle_menu) and !empty($shop_middle_menu)) {
                foreach($shop_middle_menu as $middle_value) {
                    ?>
                    <li class="nav-main-item">
                        <a href="<?php echo $middle_value['navigation_url']; ?>" <?php if($middle_value['navigation_new_window'] == 1) echo 'target="_blank"'; ?>><span class="text <?php if(is_array($middle_value['sub_navigation']) and !empty($middle_value['sub_navigation'])) echo 'with-submenu'; ?>"><?php echo $middle_value['navigation_title']; ?></span></a>
                        <?php
                        if(is_array($middle_value['sub_navigation']) and !empty($middle_value['sub_navigation'])) {
                            echo '<div class="submenu submenu-wrapper">';
                            foreach($middle_value['sub_navigation'] as $n_value) {
                                ?>
                                <a href="<?php echo $n_value['navigation_url']; ?>" <?php if($n_value['navigation_new_window'] == 1) echo 'target="_blank"'; ?> class="basic"><?php echo $n_value['navigation_title']; ?></a>
                                <?php
                            }
                            echo '</div>';
                        }
                        ?>
                    </li>
                <?php } } ?>
        </ul>
    </div>
</div>
</div>

<div class="container">
<div class="row">
    <div class="col col-16 offset4">
        <div class="home-slider">
            <div class="xm-slider">
                <div class="xm-slider-container">
                    <?php
                    $ad_class_right = $this->frontwebsite()->getShopAd('index', 'class_right');
                    if($ad_class_right != '') {
                        echo $ad_class_right; //广告图片
                    }
                    ?>
                </div>
            </div>
        </div>
        <div class="home-hd-show clearfix">
            <?php
            $huandeng_down_1 = $this->frontwebsite()->getShopAd('index', 'huandengd_1');
            $huandeng_down_2 = $this->frontwebsite()->getShopAd('index', 'huandengd_2');
            $huandeng_down_3 = $this->frontwebsite()->getShopAd('index', 'huandengd_3');
            ?>
            <div class="hd-show-item hd-show-item-first">
                <?php echo $huandeng_down_1; ?>
            </div>
            <div class="hd-show-item ">
                <?php echo $huandeng_down_2; ?>
            </div>
            <div class="hd-show-item ">
                <?php echo $huandeng_down_3; ?>
            </div>
        </div>
    </div>
</div>

<?php
//明星单品上面的横幅广告
$star_up_ad = $this->frontwebsite()->getShopAd('index', 'star_up');
if($star_up_ad) {
?>
<div class="container">
    <div style="padding-top: 10px;">
        <?php echo $star_up_ad; ?>
    </div>
</div>
<?php } ?>

<div class="home-star-goods">
    <div class="xm-plain-box J_starGoodsCarousel">
        <div class="box-hd">
            <h3 class="title"><?php echo $this->translate('明星单品'); ?></h3>
        </div>
        <?php
        $index_mingxing_goods = $this->frontwebsite()->getTagGoodsArray('index_mingxing');
        if ($index_mingxing_goods) {
        ?>
        <div class="box-bd">
            <div class="xm-star-goods-list-wrap J_carouselWrap" style="height: 308px;">
                <div class="xm-star-goods-list clearfix J_carouselList" style="width: 1240px; margin-left: 0px;">
                    <?php
                    foreach ($index_mingxing_goods as $mingxing_goods_key => $mingxing_goods_value) {
                    if(!isset($mingxing_goods_value['one_class_id'])) continue;
                    ?>
                    <div class="xm-star-goods-item">
                        <div class="item-content">
                            <span class="item-thumb">
                                <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$mingxing_goods_value['goods_id'], 'class_id'=>$mingxing_goods_value['one_class_id'])); ?>">
                                    <img alt="<?php echo $this->escapeHtml($mingxing_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($mingxing_goods_value['goods_thumbnail_image'])); ?>">
                                </a>
                            </span>
                            <span class="item-title goods_title">
                               <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$mingxing_goods_value['goods_id'], 'class_id'=>$mingxing_goods_value['one_class_id'])); ?>"><?php echo $this->escapeHtml($mingxing_goods_value['goods_name']); ?></a>
                            </span>
                            <span class="item-desc"><?php echo $this->escapeHtml($mingxing_goods_value['goods_extend_name']); ?></span>
                        </div>
                    </div>
                    <?php } ?>
                </div>
            </div>
        </div>
        <?php } ?>
    </div>
</div>
<!-- .home-star-goods END -->

<div class="home-new-goods">
    <div class="xm-plain-box">
        <div class="box-hd">
            <h3 class="title"><?php echo $this->translate('新品上架'); ?></h3>
        </div>
        <div class="box-bd">
            <div class="row">
                <div class="col col-15">
                    <div class="brick-list">
                        <?php
                        $ad_xinpinshangjia = $this->frontwebsite()->getShopAd('index', 'xinpinshangjia');
                        if($ad_xinpinshangjia != '') {
                        ?>
                        <div class="brick-item brick-item-l">
                            <div class="item">
                                <div class="item-content">
                                        <span class="item-thumb">
                                            <?php echo $ad_xinpinshangjia; ?>
                                        </span>
                                </div>
                            </div>
                        </div>
                        <?php } ?>
                        <?php
                        $index_new_goods = $this->frontwebsite()->getTagGoodsArray('index_new');
                        if ($index_new_goods) {
                        foreach ($index_new_goods as $new_goods_key => $new_goods_value) {
                        if(!isset($new_goods_value['one_class_id'])) continue;
                        ?>
                        <?php if(!@in_array($new_goods_key, array(1,2))) { ?>
                        <div class="brick-item brick-item-m">
                            <div class="item">
                                <div class="item-content">
                                    <span class="item-info">
                                        <span class="item-title">
                                            <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$new_goods_value['goods_id'], 'class_id'=>$new_goods_value['one_class_id'])); ?>">
                                                <?php echo $this->escapeHtml($new_goods_value['goods_name']); ?>
                                            </a>
                                        </span>
                                        <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($new_goods_value['goods_shop_price']); ?> <del><?php echo $this->frontwebsite()->shopPriceExtend($new_goods_value['goods_price']); ?></del></span>
                                    </span>
                                    <span class="item-thumb">
                                        <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$new_goods_value['goods_id'], 'class_id'=>$new_goods_value['one_class_id'])); ?>">
                                            <img alt="<?php echo $this->escapeHtml($new_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($new_goods_value['goods_thumbnail_image'])); ?>">
                                        </a>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <?php
                        }
                        if(@in_array($new_goods_key, array(1,2))) {
                            if($new_goods_key == 2) continue;
                        ?>
                        <div class="brick-item brick-item-m">
                            <div class="brick-item brick-item-s">
                                <div class="item">
                                    <div class="item-content">
                                        <span class="item-info">
                                            <span class="item-title">
                                                <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$new_goods_value['goods_id'], 'class_id'=>$new_goods_value['one_class_id'])); ?>">
                                                    <?php echo $this->escapeHtml($new_goods_value['goods_name']); ?>
                                                </a>
                                            </span>
                                            <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($new_goods_value['goods_shop_price']); ?></span>
                                        </span>
                                        <span class="item-thumb">
                                            <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$new_goods_value['goods_id'], 'class_id'=>$new_goods_value['one_class_id'])); ?>">
                                                <img alt="<?php echo $this->escapeHtml($new_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($new_goods_value['goods_thumbnail_image'])); ?>">
                                            </a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <?php if(isset($index_new_goods[2]) and !empty($index_new_goods[2])) { ?>
                            <div class="brick-item brick-item-s">
                                <div class="item">
                                    <div class="item-content">
                                        <span class="item-info">
                                            <span class="item-title">
                                                <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$index_new_goods[2]['goods_id'], 'class_id'=>$index_new_goods[2]['one_class_id'])); ?>">
                                                    <?php echo $this->escapeHtml($index_new_goods[2]['goods_name']); ?>
                                                </a>
                                            </span>
                                            <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($index_new_goods[2]['goods_shop_price']); ?></span>
                                        </span>
                                        <span class="item-thumb">
                                            <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$index_new_goods[2]['goods_id'], 'class_id'=>$index_new_goods[2]['one_class_id'])); ?>">
                                                <img alt="<?php echo $this->escapeHtml($index_new_goods[2]['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($index_new_goods[2]['goods_thumbnail_image'])); ?>">
                                            </a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <?php } ?>
                        </div>
                        <?php } } } ?>
                    </div>
                </div>
                <div class="col col-5">
                    <div class="channel-section">
                        <ul class="channel-list">
                            <?php
                            $index_spec2_goods = $this->frontwebsite()->getTagGoodsArray('index_spec2');
                            if ($index_spec2_goods) {
                            foreach ($index_spec2_goods as $spec2_goods_key => $spec2_goods_value) {
                            if(!isset($spec2_goods_value['one_class_id'])) continue;
                            ?>
                            <li id="J_secKillGoods">
                                <a target="_blank" href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$spec2_goods_value['goods_id'], 'class_id'=>$spec2_goods_value['one_class_id'])); ?>">
                                    <span class="item-info">
                                        <span class="item-title goods_title"><?php echo $this->escapeHtml($spec2_goods_value['goods_name']); ?></span>
                                        <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($spec2_goods_value['goods_shop_price']); ?><?php if($spec2_goods_value['goods_price'] != 0) { ?> <del><?php echo $this->frontwebsite()->shopPriceExtend($spec2_goods_value['goods_price']); ?></del><?php } ?></span>
                                        <span class="item-desc"><?php echo $this->escapeHtml($spec2_goods_value['goods_extend_name']); ?></span>
                                        <span class="item-thumb">
                                            <img alt="<?php echo $this->escapeHtml($spec2_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($spec2_goods_value['goods_thumbnail_image'])); ?>">
                                        </span>
                                        <?php if($spec2_goods_key == 0) { ?>
                                        <span class="item-flag"><span class="icon-flag"><?php echo $this->translate('特价商品'); ?></span></span>
                                        <?php } ?>
                                    </span>
                                </a>
                            </li>
                            <?php } } ?>
                        </ul>
                    </div>
                    <div class="news-section">
                        <h3><?php echo $this->translate('新闻公告'); ?></h3>
                        <ul>
                            <?php
                            $index_news_article = $this->frontwebsite()->getTagArticleArray('index_news', 'cms', 6);
                            if ($index_news_article) {
                            foreach($index_news_article as $index_news_article_key => $index_news_article_val) {
                            ?>
                            <li <?php if ($index_news_article_key == 0) echo 'class="first"'; ?>>
                                <a href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'content','cms_id'=>$index_news_article_val['article_id'])); ?>"><span class="dot">·</span><?php echo $this->escapeHtml($this->DbshopCommonFun()->dbshopCutStr($index_news_article_val['article_title'], 15, false)); ?><i class="iconfont"></i></a>
                            </li>
                            <?php } } ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- .home-new-goods END -->

<?php
//大家喜欢上面的横幅广告
$dajiaxihuan_up_ad = $this->frontwebsite()->getShopAd('index', 'dajiaxihuan_up');
if($dajiaxihuan_up_ad) {
?>
<div class="container">
    <div>
        <?php echo $dajiaxihuan_up_ad; ?>
    </div>
</div>
<?php } ?>

<div class="home-hot-goods">
    <div class="xm-plain-box">
        <div class="box-hd">
            <h3 class="title"><?php echo $this->translate('大家喜欢'); ?></h3>
        </div>
        <div class="box-bd">
            <div class="row">
                <div class="col col-15">
                    <div class="brick-list">
                    <?php
                    $ad_dajiaxihuan = $this->frontwebsite()->getShopAd('index', 'dajiaxihuan');
                    if($ad_dajiaxihuan != '') {
                    ?>
                        <div class="brick-item brick-item-l">
                            <div class="item">
                                <div class="item-content">
                                    <span class="item-thumb">
                                        <?php echo $ad_dajiaxihuan; ?>
                                    </span>
                                </div>
                            </div>
                        </div>
                    <?php } ?>
                    <?php
                    $index_dajiaxihuan_goods = $this->frontwebsite()->getTagGoodsArray('index_dajiaxihuan');
                    if ($index_dajiaxihuan_goods) {
                        foreach ($index_dajiaxihuan_goods as $dajiaxihuan_goods_key => $dajiaxihuan_goods_value) {
                        if(!isset($dajiaxihuan_goods_value['one_class_id'])) continue;
                        ?>
                        <div class="brick-item brick-item-m">
                            <div class="item">
                                <div class="item-content">
                                    <span class="item-info">
                                        <span class="item-title"><a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$dajiaxihuan_goods_value['goods_id'], 'class_id'=>$dajiaxihuan_goods_value['one_class_id'])); ?>"><?php echo $this->escapeHtml($dajiaxihuan_goods_value['goods_name']); ?></a></span>
                                        <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($dajiaxihuan_goods_value['goods_shop_price']); ?></span>
                                    </span>
                                    <span class="item-thumb">
                                        <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$dajiaxihuan_goods_value['goods_id'], 'class_id'=>$dajiaxihuan_goods_value['one_class_id'])); ?>">
                                            <img alt="<?php echo $this->escapeHtml($dajiaxihuan_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($dajiaxihuan_goods_value['goods_thumbnail_image'])); ?>">
                                        </a>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <?php } ?>
                    <?php } ?>
                    </div>
                </div>
                <div class="col col-5">
                    <div class="board-section">
                        <h3><span>HOT</span><?php echo $this->translate('热销商品排行'); ?></h3>
                        <?php
                        $index_hot_goods = $this->frontwebsite()->getTagGoodsArray('index_hot');
                        if ($index_hot_goods) {
                        ?>
                        <ul class="board-list">
                            <?php
                            foreach ($index_hot_goods as $hot_goods_key => $hot_goods_value) {
                            if(!isset($hot_goods_value['one_class_id'])) continue;
                            ?>
                                <li <?php if($hot_goods_key < 3) echo 'class="top"'; ?>>
                                <span class="item-info">
                                    <span class="item-title">
                                        <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$hot_goods_value['goods_id'], 'class_id'=>$hot_goods_value['one_class_id'])); ?>"><?php echo $this->escapeHtml($hot_goods_value['goods_name']); ?>
                                        </a>
                                    </span>
                                    <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($hot_goods_value['goods_shop_price']); ?></span>
                                </span>
                                <span class="item-thumb">
                                    <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$hot_goods_value['goods_id'], 'class_id'=>$hot_goods_value['one_class_id'])); ?>">
                                        <img alt="<?php echo $this->escapeHtml($hot_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($hot_goods_value['goods_thumbnail_image'])); ?>" style="height: 70px;">
                                    </a>
                                </span>
                                    <span class="item-num"><?php echo $hot_goods_key+1; ?></span>
                                </li>
                            <?php } ?>
                        </ul>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- .home-hot-goods END -->

<?php
//热评产品上面的横幅广告
$repingchanpin_up_ad = $this->frontwebsite()->getShopAd('index', 'repingchanpin_up');
if($repingchanpin_up_ad) {
    ?>
    <div class="container">
        <div>
            <?php echo $repingchanpin_up_ad; ?>
        </div>
    </div>
<?php } ?>

<div class="home-commented-goods">
    <div class="xm-plain-box">
        <div class="box-hd">
            <h3 class="title"><?php echo $this->translate('热评产品'); ?></h3>
        </div>
        <?php
        $index_reping_goods = $this->frontwebsite()->getTagGoodsArray('index_repingshangpin');
        if ($index_reping_goods) {
        ?>
        <div class="box-bd">
            <div class="xm-commented-goods-list-wrap">
                <div class="xm-commented-goods-list clearfix">
                    <?php
                    foreach ($index_reping_goods as $reping_goods_value) {
                    if(!isset($reping_goods_value['one_class_id'])) continue;
                    ?>
                    <div class="xm-commented-goods-item J_commentedGoods">
                        <div class="item-content">
                            <span class="item-info">
                                <span class="item-title goods_title">
                                    <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$reping_goods_value['goods_id'], 'class_id'=>$reping_goods_value['one_class_id'])); ?>"><?php echo $this->escapeHtml($reping_goods_value['goods_name']); ?></a>
                                </span>
                                <span class="item-price"><?php echo $this->frontwebsite()->shopPriceExtend($reping_goods_value['goods_shop_price']); ?><?php if($reping_goods_value['goods_price'] != 0) { ?> <del><?php echo $this->frontwebsite()->shopPriceExtend($reping_goods_value['goods_price']); ?></del><?php } ?></span>
                            </span>
                            <span class="item-thumb">
                                <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$reping_goods_value['goods_id'], 'class_id'=>$reping_goods_value['one_class_id'])); ?>">
                                    <img alt="<?php echo $this->escapeHtml($reping_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($reping_goods_value['goods_thumbnail_image'])); ?>">
                                </a>
                            </span>
                            <span class="item-comment"><?php echo $this->escapeHtml($reping_goods_value['goods_extend_name']); ?></span>
                        </div>
                    </div>
                    <?php } ?>
                </div>
            </div>
        </div>
        <?php } ?>
    </div>
</div>

<!-- .home-commented-goods END -->

<div class="home-saleoff-goods">
    <div class="xm-plain-box">
        <div class="box-hd">
            <h3 class="title"><?php echo $this->translate('特价商品'); ?></h3>
        </div>
        <?php
        $index_spec_goods = $this->frontwebsite()->getTagGoodsArray('index_spec');
        if ($index_spec_goods) {
        ?>
        <div class="box-bd">
            <div class="home-saleoff-goods-list-wrap">
                <div class="home-saleoff-goods-list clearfix">
                    <?php
                    foreach ($index_spec_goods as $spec_goods_value) {
                    if(!isset($spec_goods_value['one_class_id'])) continue;
                    ?>
                    <div class="home-saleoff-goods-item">
                        <div class="item-content">
                            <span class="item-title">
                                <div class="goods_title">
                                    <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$spec_goods_value['goods_id'], 'class_id'=>$spec_goods_value['one_class_id'])); ?>" title="<?php echo $this->escapeHtml($spec_goods_value['goods_name']); ?>"><?php echo $this->escapeHtml($spec_goods_value['goods_name']); ?></a>
                                </div>
                            </span>
                            <span class="item-price">
                                <i><?php echo $this->frontwebsite()->shopPriceExtend($spec_goods_value['goods_shop_price']); ?></i>
                                <?php if($spec_goods_value['goods_price'] != 0) { ?><del><?php echo $this->frontwebsite()->shopPriceExtend($spec_goods_value['goods_price']); ?></del><?php } ?>
                            </span>
                            <span class="item-thumb">
                                <a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$spec_goods_value['goods_id'], 'class_id'=>$spec_goods_value['one_class_id'])); ?>"><img alt="<?php echo $this->escapeHtml($spec_goods_value['goods_name']); ?>" src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($spec_goods_value['goods_thumbnail_image'])); ?>"></a>
                            </span>
                            <?php
                            if($spec_goods_value['goods_price'] != 0) {
                                $c_shop_price = $spec_goods_value['goods_price'] - $spec_goods_value['goods_shop_price'];
                            ?>
                            <div class="item-flag">
                                <span class="icon-flag">
                                    <?php echo $this->translate('省'); echo $this->frontwebsite()->shopPriceExtend($c_shop_price); ?>
                                </span>
                            </div>
                            <?php
                            }
                            ?>
                        </div>
                    </div>
                    <?php } ?>
                </div>
            </div>
        </div>
        <?php } ?>
    </div>
</div>
<!-- .home-saleoff-goods END -->

<?php
//底部横幅广告
$footer_down_ad = $this->frontwebsite()->getShopAd('index', 'footer_down');
if($footer_down_ad) {
    ?>
    <div class="container">
        <div>
            <?php echo $footer_down_ad; ?>
        </div>
    </div>
<?php } ?>

</div>
<script>
    $(window).load(function() {
        $('.flexslider').flexslider({
            animation: "slide",
            controlNav: false,
            slideshowSpeed: 4000
        });
    });
    $("#J_categoryContainer li").hover(function() {
        $(this).addClass("current");
    }, function() {
        $(this).removeClass("current");
    });

</script>